package com.xja.book.service.impl;

import com.xja.book.entity.Booktype;
import com.xja.book.mapper.BooktypeMapper;
import com.xja.book.service.BookTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("bookTypeService")//接口名称首字母小写
public class BookTypeServiceImpl implements BookTypeService {
    //使用注解不需要get和set
    @Autowired
    private BooktypeMapper booktypeMapper;
    @Override
    public List<Booktype> booktypes() throws Exception {
        return booktypeMapper.selectAll();
    }
}
